#include "setwig.h"
#include "ui_setwig.h"
#include "globalval.h"
#include "mqtthandler.h"
SetWig::SetWig(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::SetWig)
{
    ui->setupUi(this);
}

SetWig::~SetWig()
{
    delete ui;
}

void SetWig::on_pushButton_clicked()
{
       QMQTT::Message msg;
       msg.setTopic("/app/data/down");
       msg.setPayload("zym");
       GlobalVal::mqtt->publish(msg);

}
